-module(test).
-export([start/0, demo/0]).

%% 依赖ejabberd_config模块, 对其config的数据进行检查
start() ->
    stringprep_sup:start_link(),

    %% 创建config, local_config, acl三张表
    mnesia:stop(),
    mnesia:delete_schema([node()]),
    mnesia:create_schema([node()]),
    mnesia:start(),
    acl:start(),
    ejabberd_config:start().

demo() ->
    ejabberd_check:config().
